import Vue from 'vue'
import VueRouter from 'vue-router'
// 导入底部固定导航的各个组件
import HomeContainer from '../components/tabbar/HomeContainer'
import MemberContainer from '../components/tabbar/MemberContainer'
import ShopCarContainer from '../components/tabbar/ShopCarContainer'
import SearchContainer from '../components/tabbar/SearchContainer'


export default new VueRouter({
    routes: [ //配置路由规则
        {
            path: '/', redirect:'/home'
        },
        {
            path: '/home', component: HomeContainer
        },
        {
            path: '/member', component: MemberContainer
        },
        {
            path: '/shopcar', component: ShopCarContainer
        },
        {
            path: '/search', component: SearchContainer
        }
    ],
    linkActiveClass: 'mui-active'  //覆盖路由高亮的类
})
